<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        let objs={
            name:"alice",
            show:function(){
                let f1=()=>{
                    let f2=()=>{
                        let f3=()=>{
                            let f4=()=>{
                                console.log(this);
                            };
                            f4();
                        };
                        f3();
                    };
                    f2();
                };
                f1();
            }
        };
        objs.show();

        function Student(name,age){
            this.name=name;
            this.age=age;
            function showThis(){
                console.log(this);
            }
            showThis();
            let showThis2=()=>{
                console.log(this);
            }
            showThis2();
        }
        var stu=new Student("alice",30);


        window.onload=function(){
            // document.getElementById("btn").onclick=function(){
            //     console.log(this);
            // };
           
            document.getElementById("btn").onclick=()=>{
                console.log(this);
            };
        };
       
    </script>
</head>
<body>
    <input type="button" value="我是按钮" id="btn">
</body>
</html>